-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
help descriptions for better clarity #635
Conversation
noborus
commented
Oct 9, 2024
- Improved command-line help and help descriptions for better clarity.
- Fixed typos in various files.
- Improved command-line help and help descriptions for better clarity. - Fixed typos in various files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor remarks and suggestions
oviewer/input_search_test.go
Outdated
@@ -278,14 +278,14 @@ func Test_stripBackSlash(t *testing.T) { | |||
want string | |||
}{ | |||
{ | |||
name: "nonEsacpe", | |||
name: "nonEsacape", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This no?
name: "nonEsacape", | |
name: "nonEscape", |
Or is it intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops
oviewer/input_search_test.go
Outdated
args: args{ | ||
str: "\test", | ||
}, | ||
want: "\test", | ||
}, | ||
{ | ||
name: "nonEsacpe2", | ||
name: "nonEsacape2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as #635 (comment)
oviewer/keybind.go
Outdated
@@ -365,7 +365,7 @@ func (k KeyBind) String() string { | |||
k.writeKeyBind(&b, actionLastSection, "last section") | |||
k.writeKeyBind(&b, actionFollowSection, "follow section mode toggle") | |||
k.writeKeyBind(&b, actionSectionNum, "number of section header lines") | |||
k.writeKeyBind(&b, actionHideOther, "toggle hide other section") | |||
k.writeKeyBind(&b, actionHideOther, "hide other section toggle") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's unclear if you hide other section,or iftou hide a section named "other"
So maybe this
k.writeKeyBind(&b, actionHideOther, "hide other section toggle") | |
k.writeKeyBind(&b, actionHideOther,`"hide "other" section toggle`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
oviewer/input_search_test.go
Outdated
@@ -278,14 +278,14 @@ func Test_stripBackSlash(t *testing.T) { | |||
want string | |||
}{ | |||
{ | |||
name: "nonEsacpe", | |||
name: "nonEscaape", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot stop laughing, thanks @noborus
Try this
name: "nonEscaape", | |
name: "nonEscape", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...sorry
Thank you. |